body { 
 margin: 0; 
 padding: 8em 0 0 0; 
 color: #000; 
 background: #fff; 
 font-size: 1em; 
 font-family: "trebuchet ms", trebuchet, georgia, verdana, sans serif;
 text-align:left;
} 



p{
 margin:0;
 padding:1em;
 font-size: .9em;
}



h1{
 margin:0;
 padding:0;
 font-size:2.2em;
}


#header  { 
 overflow: auto; 
 width: 100%; 
 height: 8em; 
  position: absolute; 
 top: 0; 
 left: 0; 
 background: #09d; 
} 

.log {
  margin: 2em 2em 2em 2em;
  font-size: 0.8em;
  font-family: verdana;
  float: right;

}

#menu {

 width: 8em;
 height: 100%;
 float: left;

 
}

#menu a:hover{
 color: #0000FF;
 text-decoration: none;
 }
 



#header h1{

 margin:0;
 padding:0 0 0 20px;
 font-size: 2.3em;
 color: #fff;
 line-height:3em;

}



#content { 
 margin: 0.5em 0.1em 0.5em 9em;
 border: 0.5em dashed rgb(100, 100, 100); 
 padding: 1em; 
} 


#footer {
 width: 100%; 
 height: 2em; 
 line-height:2em;
 background: #09d; 
 text-align: center;
 clear:both;
} 



/*** Nav bar styles ***/

ul.nav,
.nav ul{
/*Remove all spacings from the list items*/
	margin: 0;
	padding: 0;
	cursor: default;
	list-style-type: none;
}

ul.nav{
	width: 20ex;
/*Optional, to make the navigation bar positions on the left of the content*/
	float: left;
	margin-right: 1em;
	margin-top: 3em;
}

ul.nav>li{
	margin: 0;
	padding: 2px 6px;
}

ul.nav li>ul{
/*Make the sub list items invisible*/
	display: none;
	position: absolute;
	width: 20ex;
	left: 20ex;
	margin-top: -1.4em;
	margin-left: 9px;
}

ul.nav li:hover>ul{
/*When hovered, make them appear*/
	display : block;
}

.nav ul li a{
/*Make the hyperlinks as a block element, sort of a hover effect*/
	display: block;
	padding: 2px 10px;
}

/*** Menu styles (customizable) ***/

ul.nav,
.nav ul,
.nav ul li a{
	background-color: #fff;
	color: #369;
}

ul.nav li:hover,
.nav ul li a:hover{
	background-color: #369;
	color: #fff;
}

ul.nav li:active,
.nav ul li a:active{
	background-color: #036;
	color: #fff;
}

ul{
	border: 1px solid #369;
}

.nav a{
	text-decoration: none;
}

 

@media screen { 

 body>#header { 

  position: fixed; 

 } 

  } 
